const mongoose = require('mongoose')
let schema = mongoose.Schema
mongoose.connect('mongodb://localhost/test', { useNewUrlParser: true, useUnifiedTopology: true })
let lybschema = new schema({
  id: String,
  nickname: String,
  title: String,
  content: { type: String, required: true },
  created: String
})
module.exports = mongoose.model('Lyb', lybschema)